package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.Role;

import java.sql.SQLException;
import java.util.List;

/**
 * @author zgx at 2018/9/13 0013 下午 12:59
 */
public interface RoleService {

    public int add(Role role) throws SQLException;

    public int update(Role role) throws SQLException;

    public int delete(int id) throws SQLException;

    public List<Role> search(Role role);

    public int count(Role role);

    public Page<Role> search(Role role,int page,int rows) throws SQLException;

}
